﻿//-----------------------------------------------------------------------
// <copyright file="ProyectoGoyaContext.cs" company="CronopioDD">
//     Copyright CronopioDD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ProyectoGoya.Models
{
    using System.Data.Entity;

    /// <summary>
    /// ProyectoGoyaContext class
    /// </summary>
    public class ProyectoGOYAContext : DbContext
    {
        //// You can add custom code to this file. Changes will not be overwritten.
        //// 
        //// If you want Entity Framework to drop and regenerate your database
        //// automatically whenever you change your model schema, add the following
        //// code to the Application_Start method in your Global.asax file.
        //// Note: this will destroy and re-create your database with every model change.
        //// 
        //// System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<ProyectoGoya.Models.ProyectoGoyaContext>());

        #region Constructors        

        /// <summary>
        /// Initializes a new instance of the ProyectoGoyaContext class
        /// </summary>
        public ProyectoGOYAContext()
            : base("name=ProyectoGoyaContext")
        {
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets Firmas
        /// </summary>
        public DbSet<Firma> Firmas { get; set; }

        #endregion
    }
}
